﻿using System.Collections.ObjectModel;
using TheLocal.Model;
using TheLocal.Model.Categories;

namespace TheLocal.ViewModel
{
    public class CategoryListViewModel : ObservableCollection<Category>
    {
        private Category selectedCategory;

        public CategoryListViewModel()
        {
            this.Add(new National());
            this.Add(new BusinessAndMoney());
            this.Add(new Politics());
            this.Add(new SciAndTech());
            this.Add(new Sport());
        }

        public Category SelectedCategory
        {
            get
            {
                return selectedCategory;
            }
            set
            {
                selectedCategory = value;
            }
        }
    }
}
